/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package testkryo.impl;

/**
 *
 * @author takao
 */
public class Entry{

  Comparable key;
  Pointer value;
  private Pointer next;

  public Entry(Comparable key, Pointer value, Node next) {
    this.key = key;
    this.value = value;
    this.next = BTree.storer.store(next);
  }

  public Entry() {
  }

  public Node next() {
    return BTree.storer.get(next, Node.class);
  }

  public void next(Node next) {
    this.next = BTree.storer.store(next);
  }
}
